package com.kinghood.authoritycenter.dao.sys;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kinghood.authoritycenter.common.model.dao.sys.SysDirectionDO;
import com.kinghood.authoritycenter.common.model.dto.sys.DirectionReqExtDTO;
import com.kinghood.authoritycenter.common.model.vo.sys.SystemDirectionDetailResDTO;
import com.kinghood.infrastructure.api.authority.DirectionRemoteVO;
import com.kinghood.infrastructure.api.authority.DirectionReqRemoteDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 系统数据字典表 Mapper 接口
 * </p>
 *
 * @author KingHood
 * @since 2023-12-20
 */
public interface SysDirectionMapper extends BaseMapper<SysDirectionDO> {

    /**
     * 查询页面
     *
     * @param page  页
     * @param query 查询
     * @author jp
     * @date 2024/01/03
     */
    Page<SystemDirectionDetailResDTO> queryPage(Page page , @Param("data") DirectionReqExtDTO query);

    /**
     * @description: 机构可选字典下拉选项列表
     * @date: 2023/4/6 11:05
     * @Author: Tom
     * @param: [directionReqExtDTO]
     * @return: java.util.List<com.jinyafu.custom.entity.core.SystemDirection>
     */
    List<SysDirectionDO> selectOptionList(DirectionReqExtDTO directionReqExtDTO);

    /**
     * 内部程序调用获取信息
     *
     * @param directionReqExtDTO 方向req ext dto
     * @author jp
     * @date 2024/01/08
     */
    List<DirectionRemoteVO> getDirectionByCodeList(DirectionReqRemoteDTO directionReqExtDTO);
}
